package com.kl;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableAsync//开启多线程
@MapperScan("com.kl.mapper")
@EnableSwagger2 //启用 Swagger2 接口文档引擎
//@EnableEurekaClient //启用 eureka 客户端
@EnableFeignClients //启用 feign 声明式web服务
@EnableHystrix // 开启hystrix断路器   本身@EnableHystrix注解已经涵盖了EnableCircuitBreaker的功能
@EnableCircuitBreaker  //开启服务熔断降级,仪表盘(dashboard)
@EnableDiscoveryClient //通用的注册中心启动器  不支持 eureka
@SpringBootApplication
public class LogisticsStoreServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(LogisticsStoreServiceApplication.class,args);
    }
}
